﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace LearningEnglish.Controllers.Mock
{
    public class ZData
    {
        public static Guid LearnID = Guid.Parse("401F0159-C42A-42F0-B0AA-74CC1D5D5C21");

        public static Guid Ticket = Guid.Parse("4B1A898D-D864-4D47-950A-17BD5700058D");

        public static Guid WordBookID = Guid.Parse("13A40FE6-B619-4155-A44B-288FBEFCFDDD");

        public static Guid FileID = Guid.Parse("DFBC0897-D2F3-4A7A-9FE5-DC8C7DC1814B");

        public static string FilePath = "StaticFiles/Img/DFBC0897-D2F3-4A7A-9FE5-DC8C7DC1814B.jpg";
    }

    public class MockCheckTokenAttribute : CheckTokenAttribute
    {
        public MockCheckTokenAttribute()
        {
            Order = 0;
        }

        protected override bool VaildTicket(Guid ticket)
        {
            return ticket == ZData.Ticket;
        }
    }
}